#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.demo.service.impl;

import ${package}.demo.dao.ProductDaoImpl;
import ${package}.demo.model.Product;
import ${package}.demo.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author liuxw
 * @date 2019/3/28
 * @since 1.0
 */
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductDaoImpl productDaoImpl;

    @Override
    public Integer save(Product entity) {
        return productDaoImpl.save(entity);
    }

    @Override
    public Integer deleteById(Integer id) {
        return productDaoImpl.deleteById(id);
    }

    @Override
    public List<Product> getPageList(Map map) {
        return productDaoImpl.getPageList(map);
    }

    @Override
    public Integer getPageListCount(Map map) {
        return productDaoImpl.getPageListCount(map);
    }
}
